#pragma once
#include <nice2d/widgets/control.h>

class ControlRadioSelector
{
public:
    ControlRadioSelector();
    virtual ~ControlRadioSelector();
public:
    void addControl(ControlPointer control);
    void select(ControlPointer control);

    std::weak_ptr<Control> getSelectedControl()const;
protected:
    virtual void unselected(ControlPointer control);
    virtual void selected(ControlPointer control);
private:
    std::unique_ptr<class ControlSelectorData> data;
};
